<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>蚌埠医学院受试者招募系统</title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/plugins/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/css/portal.main.css">
 <link   href="${pageContext.request.contextPath}/assets/plugins/layer/skin/default/layer.css" rel="stylesheet" type="text/css" />  
  <!--[if lt IE 9]>
    <script src="/bg/assets/plugins/html5shiv/html5shiv.min.js"></script>
    <script src="/bg/assets/plugins/respond/respond.min.js"></script>
  <![endif]-->
  
  <style type="text/css">
  #unHealthHtml{
    border-right:1px solid #f1f1f1;
  }
  #user-home{
     color:#ccc;
  }
  
  #mian_add > .carousel-inner > .item{
      background-repeat:no-repeat;
      background-position:center center;
      background-size:cover;
      color:#000 !important;      
  }
  
  #exit-login{
    display:none;
  }
  
  .dynamic-box{
     background-color:#429BFE;
     color:#fff;
  }
  
  #btn-jgjj{
     color:#fff;
  }
  .patients-call > div{
    margin-top:30px;
  }
.center-list-content li,.center-list-content ul{
  list-style: circle;
  color:#000;
}
.center-list-content a{
     overflow: hidden;
     text-overflow:ellipsis;     
     white-space: nowrap;
  }
.center-list-content li+li{
     border-top:1px dotted #ccc;
     line-height:30px;
  }
  .mechanism-detail > .row .left-content{
    color:#000;
  }
  .right-content-list-box{
     height:180px;
     overflow:hidden;
     position: relative;
  }
  .right-content-list{
     position: absolute;
     top:0;
     left:0;
     width:100%;
  }
  .bottom-left-img{
     border:1px solid #ccc;
     padding:2px;
     text-algin:center;
  }
  .bottom-left-img img{
    vertical-align: top;
  }
  .bottom-left-box{
     color:#000;
     font-size:14px;
     padding-left:20px;
     padding-right:10px;
  }
  .ksjj-item{  	
  	line-height: 26px;
  }
  .right-content-item{
    padding:5px;
  }
  #bbmc-sy{
     cursor:pointer;
  }
  .patients-call  .patients-title{
  	background-color:#429BFE;
  	color:#fff;
  }
  .portal-flag{
  	height:30px;
  	background-color:#000;
  	text-align: center;
  }
  .portal-flag > img{
    vertical-align: top;
  }
  </style>

</head>
<body>

  <header id="header">
      <div class="topbar hidden-sm">
          <div class="container">
             <div class="row">
                 <div class="col-md-2 col-xs-6 text-center  hidden-xs">
                   <a href="#" class="mobile-link">
                      <i class="icon-mobilephone"></i>
                      <span>蚌医一附院</span>
                      <i class="glyphicon glyphicon-chevron-down"></i> 
                      <img src="${pageContext.request.contextPath}//assets/images/c_06.jpg" alt="扫一扫">      
                   </a>
                 </div>
                 <div class="col-md-5 text-center  hidden-xs">
                     <i class="icon-telephone"></i>
                     <span id="bbmc-sy">医院首页</span>
                 </div>
                 <div class="col-md-2 col-xs-6   text-center">
                       <a href="#" id="user-home">个人中心</a>
                       <a href="#" id="exit-login">退出登录</a>
                 </div>
                 <div class="col-md-3 col-xs-6  text-right">
                       <a href="#" class="btn btn-itcast btn-sm" id="btn-regist">免费注册</a>
                       <a href="#"  class="btn btn-link btn-sm" id="btn-login">登录</a>
                       <a href="#" id="btn-user-login-box" style="margin:0;padding:0;height:40px;line-height:40px;display:none;"  class="btn btn-link btn-sm"  id="btn-user-login">已登录&nbsp;:<span id="login-user"></span></a>                      
                 </div>
             </div> 
          </div>
      </div>
  </header>

  <section id="mian_add" class="carousel slide" data-ride="carousel">
        <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#mian_add" data-slide-to="0" class="active"></li>
            <li data-target="#mian_add" data-slide-to="1"></li>
            <li data-target="#mian_add" data-slide-to="2"></li>
            <li data-target="#mian_add" data-slide-to="3"></li>
        </ol>

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
            <div class="item active" data-img-lg='${pageContext.request.contextPath}/assets/images/bbmc_lg_slid_01.png'  data-img-xs='${pageContext.request.contextPath}/assets/images/bbmc_slid_01.jpg'>图片一</div>
            <div class="item"  data-img-lg='${pageContext.request.contextPath}/assets/images/bbmc_lg_slid_02.png'  data-img-xs='${pageContext.request.contextPath}/assets/images/bbmc_slid_02.jpg'>图片二</div>
            <div class="item"  data-img-lg='${pageContext.request.contextPath}/assets/images/bbmc_lg_slid_03.png'  data-img-xs='${pageContext.request.contextPath}/assets/images/bbmc_slid_03.jpg'>图片三</div>
            <div class="item"  data-img-lg='${pageContext.request.contextPath}/assets/images/bbmc_lg_slid_04.png'  data-img-xs='${pageContext.request.contextPath}/assets/images/bbmc_slid_04.jpg'>图片四</div>          
        </div>

        <!-- Controls -->
        <a class="left carousel-control" href="#mian_add" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#mian_add" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a> 
  </section>

  <div class="patients-call clearfix">
  
<%--      <div class="portal-flag" style="">
       <img src="${pageContext.request.contextPath}//assets/images/portal_flag.png" alt="扫一扫"> 
   </div> --%>
     <div class="col-xs-12 col-md-6 col center-health-list" id="healthHtml">
	      <!-- <ul class="patients-title clearfix">
	         <li class="border-left-title" style="width:25%;">序号</li>
	         <li style="width:50%;">健康受试者招募</li>
	         <li class="item-ref" style="width:25%;">更多</li>
	      </ul>
	      <ul class="patients-body clearfix border-bottom col">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"  style="width:25%;">更多</li>
	      </ul>
	      <ul class="patients-body clearfix border-bottom col">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"  style="width:25%;">更多</li>
	      </ul>	 
	      <ul class="patients-body clearfix border-bottom col">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"  style="width:25%;">更多</li>
	      </ul>	
	      <ul class="patients-body clearfix border-bottom">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"   class="border-right" style="width:25%;">更多</li>
	      </ul> -->		       	      	      	      
     </div>
     <div class="col-xs-12 col-md-6 col" id="unHealthHtml">
	      <!-- <ul class="patients-title clearfix">
	         <li  class="border-left-title"  style="width:25%;">序号</li>
	         <li style="width:50%;">患者受试者招募</li>
	         <li  class="item-ref"  class="border-right-title" style="width:25%;">更多</li>
	      </ul>
	      <ul class="patients-body clearfix border-bottom">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"   class="border-right" style="width:25%;">更多</li>
	      </ul>	
	      <ul class="patients-body clearfix border-bottom">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"   class="border-right" style="width:25%;">更多</li>
	      </ul>
	      <ul class="patients-body clearfix border-bottom">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"   class="border-right" style="width:25%;">更多</li>
	      </ul>	    
	      <ul class="patients-body clearfix border-bottom">
	         <li class="border-left"  style="width:25%;">2</li>
	         <li style="width:50%;">阿斯顿发生大发速度发送到发送到发送到发生撒旦法撒旦法撒旦法</li>
	         <li  class="item-ref"   class="border-right" style="width:25%;">更多</li>
	      </ul> -->		        	            
     </div>
  </div>

  
  <div class="mechanism-detail clearfix">
     <div class="row clearfix">
        <div class="col-xs-12 col-md-4 bottom-left-border col border-top-title border-bottom-title border-left-title">
<!--             <div class="dynamic-box clearfix"> 
 				<h3>机构简介</h3>            
            </div> -->
           <div class="dynamic-box clearfix">
	           <h3>机构简介</h3>
	           <a class="ref-detail" href="#" id="btn-jgjj">查看更多>></a>           
           </div>            
            <div class="left-content">
			               蚌埠医学院第一附属医院（蚌埠医学院附属肿瘤医院）
			          是皖北地区规模最大的集医疗、教学、科研、预防、康复、
			          保健和急救为一体的大型综合性医院，
			          也是卫生部首批三级甲等医院、国家级爱婴医院、国家药物临床试验机构。医院始建于1952年，
			          前身为国家水利部治淮委员会直属医院，
	            1958年医院更名为蚌埠医学院附属医院，2006年更名为蚌埠医学院第一附属医院，
	            2010年增名蚌埠医学院附属肿瘤医院...
            </div> 
            <!-- <a class="ref-detail" href="#" id="btn-jgjj">查看更多>></a>    -->        
        </div>
        <div class="col-xs-12 col-md-4 bottom-left-border col border-top-title border-bottom-title border-left-title">
           <div class="dynamic-box clearfix"> 
	           <h3>机构动态</h3>
	           <a class="ref-detail" href="#" id="btn-jgdt">查看更多>></a>           
           </div> 
           <ul class="center-list-content" id="dynamic-id">
              <!-- <li><a class="col-md-9 text-left" style="color:#000;">1.金塔阿斯顿发斯蒂芬阿斯蒂芬阿斯顿发斯蒂芬阿斯蒂芬爱死斯蒂芬爱的色放阿斯蒂芬</a><a class="col-md-3 text-center">2017-08-35</a></li>
              <li><a class="col-md-9 text-left">1.金塔阿斯顿发斯蒂芬阿斯蒂芬阿斯顿发斯蒂芬阿斯蒂芬爱死斯蒂芬爱的色放阿斯蒂芬</a><a class="col-md-3 text-center">2017-08-35</a></li>
              <li><a class="col-md-9 text-left">1.金塔阿斯顿发斯蒂芬阿斯蒂芬阿斯顿发斯蒂芬阿斯蒂芬爱死</a><a class="col-md-3 text-center">2017-08-35</a></li>
              <li><a class="col-md-9 text-left">1.金塔阿斯顿发斯蒂芬阿斯蒂芬阿斯顿发斯蒂芬阿斯蒂芬爱死斯蒂芬爱的色放阿斯蒂芬</a><a class="col-md-3 text-center">2017-08-35</a></li>
              <li><a class="col-md-9 text-left">1.金塔阿斯顿发斯蒂芬阿斯蒂芬阿斯顿发斯蒂芬阿斯蒂芬爱死斯蒂芬爱的色放阿斯蒂芬</a><a class="col-md-3 text-center">2017-08-35</a></li>
              <li><a class="col-md-9 text-left">1.金塔阿斯顿发斯蒂芬阿斯蒂芬阿斯顿发斯蒂芬阿斯蒂芬爱死斯蒂芬爱的色放阿斯蒂芬</a><a class="col-md-3 text-center">2017-08-35</a></li>  -->
           </ul>
        </div>
        <div class="col-xs-12 col-md-4 col bottom-left-border border-top-title border-bottom-title border-left-title border-right-title">
           <div class="dynamic-box clearfix">
	           <h3>科室简介</h3>
	           <a class="ref-detail" href="#" id="btn-ksjj">查看更多>></a>           
           </div>
           <div class="right-content-list-box">
	           <ul class="right-content-list" id="department-id" >
				  <li class="right-content-item clearfix">
				  	<span class="pull-left bottom-left-img"><img src="${pageContext.request.contextPath}/assets/images/dep_slid_01.png"></span>
				  	<span class="pull-left bottom-left-box">
				  	    <div class="ksjj-item">科室名称：心内科</div>
				  	    <div class="ksjj-item">作者：申升</div>
				  	    <div class="ksjj-item">科室简介：<a>查看详情>></a></div>
				  	</span>
				  </li>  
				  <li class="right-content-item clearfix">
				  	<span class="pull-left bottom-left-img"><img src="${pageContext.request.contextPath}/assets/images/dep_slid_01.png"></span>
				  	<span class="pull-left bottom-left-box">
				  	    <div class="ksjj-item">科室名称：心内科</div>
				  	    <div class="ksjj-item">作者：申升</div>
				  	    <div class="ksjj-item">科室简介：<a>查看详情>></a></div>
				  	</span>
				  </li> 	
				  <li class="right-content-item clearfix">
				  	<span class="pull-left bottom-left-img"><img src="${pageContext.request.contextPath}/assets/images/dep_slid_01.png"></span>
				  	<span class="pull-left bottom-left-box">
				  	    <div class="ksjj-item">科室名称：心内科</div>
				  	    <div class="ksjj-item">作者：申升</div>
				  	    <div class="ksjj-item">科室简介：<a>查看详情>></a></div>
				  	</span>
				  </li> 
				  <li class="right-content-item clearfix">
				  	<span class="pull-left bottom-left-img"><img src="${pageContext.request.contextPath}/assets/images/dep_slid_01.png"></span>
				  	<span class="pull-left bottom-left-box">
				  	    <div class="ksjj-item">科室名称：心内科</div>
				  	    <div class="ksjj-item">作者：申升</div>
				  	    <div class="ksjj-item">科室简介：<a>查看详情>></a></div>
				  	</span>
				  </li> 
				  <li class="right-content-item clearfix">
				  	<span class="pull-left bottom-left-img"><img src="${pageContext.request.contextPath}/assets/images/dep_slid_01.png"></span>
				  	<span class="pull-left bottom-left-box">
				  	    <div class="ksjj-item">科室名称：心内科</div>
				  	    <div class="ksjj-item">作者：申升</div>
				  	    <div class="ksjj-item">科室简介：<a>查看详情>></a></div>
				  	</span>
				  </li> 				  				   			  			             
	           </ul>           
           </div>
        </div>
     </div>
  </div>


  


  
  <script src="${pageContext.request.contextPath}/assets/js/jquery-1.11.2.min.js" charset="utf-8" type="text/javascript"></script>
  <script src="${pageContext.request.contextPath}/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
  <script src="${pageContext.request.contextPath}/assets/js/main.js"></script>
  <script src="${pageContext.request.contextPath}/assets/plugins//layer/mobile/layer.js"></script>
    <script src="${pageContext.request.contextPath}/assets/plugins/layer/layer.js"></script>  
  
  <script type="text/javascript">
  
  var timeInterval;
     var page={
    		 loginStatus:false,
    		 init:function(){
    			 //page.initAnimate();
    			
    			 
    			 //alert($(".right-content-list").height());
    			 //alert($(".right-content-list").height());
    			 //var 
    			 this.initEvents().chekPortalLogin().initItemList();    			 
    		 },
    		 //加载部分健康使者与患者受试者项目
    		 initItemList:function(){
    			 var that = this;    			 
    			 $.post("${pageContext.request.contextPath}/Portal/portal/GITL01.do?rnd="+Math.random(),function(result){
    				 var healthHtml = "";
    				 var unHealthHtml="";
    				 
    				 //健康受试者
    				 healthHtml +='<ul class="patients-title clearfix">';
    				 healthHtml +='<li class="border-left-title" style="width:25%;">序号</li>';
    				 healthHtml +='<li style="width:50%;">健康受试者招募</li>';
    				 healthHtml +='<li class="item-ref patient-all-item" data-category="1" style="width:25%;">更多</li>';
    				 healthHtml +='</ul>';
    				 healthHtml +='';
    				 
    				 //患者受试者
    				 unHealthHtml +='<ul class="patients-title clearfix">';
    				 unHealthHtml +='<li  class="border-left-title"  style="width:25%;">序号</li>';
    				 unHealthHtml +='<li style="width:50%;">患者受试者招募</li>';
    				 unHealthHtml +='<li  class="item-ref patient-all-item" data-category="1"  class="border-right-title" style="width:25%;">更多</li>';
    				 unHealthHtml +='</ul>';
   
					try{
	    				 if(result.state==200){
	    					 for(var i=0;i<result.data.length;i++){    						 
	    						 if(result.data[i].PARENT_CODE==1){
	    							//健康受试者
	    							 healthHtml +='<ul class="patients-body clearfix border-bottom col">';
	    							 healthHtml +='<li class="border-left"  style="width:25%;">'+result.data[i].CODE+'</li>';
	    							 healthHtml +='<li style="width:50%;">'+result.data[i].NAME+'</li>';
	    							 healthHtml +='<li  class="item-ref patient-item-ref" data-code='+result.data[i].CODE+'  style="width:25%;">查看</li>';
	    							 healthHtml +='</ul>';
	    						 }else{
	    							//患者受试者
	    							 unHealthHtml +='<ul class="patients-body clearfix border-bottom">';
	    							 unHealthHtml +='<li class="border-left"  style="width:25%;">'+result.data[i].CODE+'</li>';
	    							 unHealthHtml +='<li style="width:50%;">'+result.data[i].NAME+'</li>';
	    							 unHealthHtml +='<li  class="item-ref patient-item-ref"  data-code='+result.data[i].CODE+'  class="border-right" style="width:25%;">查看</li>';
	    							 unHealthHtml +='</ul>';
	    						 }
	    					 }
	    					 $("#healthHtml").html(healthHtml);
	    					 $("#unHealthHtml").html(unHealthHtml);
	    				 }else{
								//健康受试者
							 healthHtml +='<ul class="patients-body clearfix border-bottom col">';
							 healthHtml +='<li class="border-left"  style="width:25%;">2</li>';
							 healthHtml +='<li style="width:50%;">暂无数据</li>';
							 healthHtml +='<li  class="item-ref"  style="width:25%;">更多</li>';
							 healthHtml +='</ul>';
								//患者受试者
							 unHealthHtml +='<ul class="patients-body clearfix border-bottom">';
							 unHealthHtml +='<li class="border-left"  style="width:25%;">2</li>';
							 unHealthHtml +='<li style="width:50%;">暂无数据</li>';
							 unHealthHtml +='<li  class="item-ref"   class="border-right" style="width:25%;">更多</li>';
							 unHealthHtml +='</ul>';	
	    					 $("#healthHtml").html(healthHtml);
	    					 $("#unHealthHtml").html(unHealthHtml);
	    				 }		
	    				 that.getPartDynamic();
					}catch(e){
						//健康受试者
						 healthHtml +='<ul class="patients-body clearfix border-bottom col">';
						 healthHtml +='<li class="border-left"  style="width:25%;">2</li>';
						 healthHtml +='<li style="width:50%;">暂无数据</li>';
						 healthHtml +='<li  class="item-ref"  style="width:25%;">更多</li>';
						 healthHtml +='</ul>';
							//患者受试者
						 unHealthHtml +='<ul class="patients-body clearfix border-bottom">';
						 unHealthHtml +='<li class="border-left"  style="width:25%;">2</li>';
						 unHealthHtml +='<li style="width:50%;">暂无数据</li>';
						 unHealthHtml +='<li  class="item-ref"   class="border-right" style="width:25%;">更多</li>';
						 unHealthHtml +='</ul>';	
   					     $("#healthHtml").html(healthHtml);
   					     $("#unHealthHtml").html(unHealthHtml);
					}
    				 
    			 })    			 
    			 return that;
    		 },
    		 chekPortalLogin:function(){   
    			 var that = this;    			 
    			 $.post("${pageContext.request.contextPath}/Portal/portal/CKL01.do?rnd="+Math.random(),function(result){
    				 if(result.state==1){
    					 
    					 that.loginStatus=true;
    					 that.initUserHome();
    					 
    					 $("#btn-regist").css("display","none");
    					 $("#btn-login").css("display","none");
    					 $("#btn-user-login").css("display","nomal");
    					 $("#btn-user-login-box").css("display","block");    					 
    					 $("#exit-login").css("display","inline");    					 
    					 if(result.data.NAME && result.data.NAME){
    						 $("#login-user").text(result.data.NAME);
    					 }else{
    						 $("#login-user").text(result.data.PHONE_NUMBER);
    					 }
    					
    				 }else{
    					 $("#btn-user-login").css("display","none");
    					 $("#btn-login").css("display","nomal");  
    					 $("#btn-regist").css("display","nomal");
    					 $("#exit-login").css("display","none");
    				 }
    			 })    			 
    			 return that;
    		 },
    		 getPartDynamic:function(){
    			 var that = this;       			 
    			 $.post("${pageContext.request.contextPath}/Portal/portal/GPD01.do?rnd="+Math.random(),function(result){
    				 var html="";
    				 for(var i=0;i<result.data.length;i++){
    					 html +='<li><a class="col-xs-9 text-left" style="color:#000;"><span style="position:absolute;left:0;top:11px; background-color:red;border-radius:50%;height:4px;width:4px;"></span>'+result.data[i].TITLE+'</a><a class="col-xs-3 text-center">2017-08-35</a></li>';	 
    				 }
    				 $("#dynamic-id").html(html);
    				 
    				 that.getPartDepartMent();
    			 })
    			 return that;
    		 },
    		 getPartDepartMent:function(){
    			 var that = this;       			 
    			 $.post("${pageContext.request.contextPath}/Portal/portal/GPDPM01.do?rnd="+Math.random(),function(result){
    				 var html="";
    				 for(var i=0;i<result.data.length;i++){
    					 //html +='<li><a>'+result.data[i].TITLE+'</a></li>';	 
    					 html +='<li class="right-content-item clearfix">';
    					 html +='<span class="pull-left bottom-left-img"><img src="${pageContext.request.contextPath}/assets/images/dep_slid_01.png"></span>';
    					 html +='<span class="pull-left bottom-left-box">';
    					 html +='<div class="ksjj-item">科室名称：'+result.data[i].NAME+'</div>';
    					 html +='<div class="ksjj-item">作者：'+result.data[i].AUTHOR+'</div>';
    					 html +='<div class="ksjj-item">科室简介：<a class="dipart-redirect">查看详情>></a></div>';
    					 html +='</span>';
    					 html +='</li>';
    				 } 				 
    				 $("#department-id").html(html);
    				 page.initAnimate();
    			 })
    			 return that;
    		 },    		 
    		 initUserHome:function(){
    			 var that=this;
    			 if(that.loginStatus==true){
    				 $("#user-home").css("color","blue");
    			 }
    			 return that;
    		 },
    		 initAnimate:function(){
    			 var allHeight = $(".right-content-list").height();
    			 var itemHeight = $(".right-content-list").children(".right-content-item").height();
    			 var moveDis = 180-allHeight;
    			 $(".right-content-list").animate({top: moveDis+'px'}, 10000);
    			 
    			 clearInterval(timeInterval);
    			 
    			timeInterval = setInterval(function(){
    				$(".right-content-list").stop();
    				 $(".right-content-list").css({top: '0px'}, 10000);
    				 $(".right-content-list").animate({top: moveDis+'px'}, 10000);	 
    			 }, 10050)
    		 },
    		 initEvents:function(){
    			 var that = this;  
    			 
    			 //跳转到医院官网
    			 $("#bbmc-sy").on("click",function(){
    				 window.location.href="http://www.bbmc.edu.cn/";
    			 })
    			 
    			 $("body").on("click",".dipart-redirect",function(){
    				 alert("ss");
    			 })
    			 
    			 $("body").on("mouseenter",".right-content-list",function(){    				 
    				 $(this).stop();
    			 }).on("mouseleave",".right-content-list",function(){
    				 page.initAnimate();
    			 })
    			 
    			 
    			 //退出登录
    			 $("#exit-login").on("click",function(){
        			 $.post("${pageContext.request.contextPath}/Portal/portal/EXLOG01.do?rnd="+Math.random(),function(result){
        				 if(result.state==200){
        					 window.location.href="${pageContext.request.contextPath}/Portal/portalLogin.do?rnd="+Math.random();
        				 } else {
        					 layer.msg(result.msg);
        					 return false;
        				 }        				 
        			 })
    			 })
    			 
    			 //点击个人中心
    			 $("#user-home").on("click",function(){
    				 if(page.loginStatus){
    					 window.location.href="${pageContext.request.contextPath}/Portal/applyUserHome.do"
    				 }else{
    					 layer.msg("对不起,当前用户还未登陆!");//请将“字符串类型”要换成你要验证的那个属性名称！
    				 }
    			 })
    			 
    			 //跳转到项目列表
    			 $(".patients-call").on("click",".patient-all-item",function(){
    				 window.location.href="${pageContext.request.contextPath}/Portal/volunteeRecuit.do"
    			 })
    			 
    			 //点击项目查看跳转详情页
    			 $(".patients-call").on("click",".patient-item-ref",function(){
    				 window.location.href="${pageContext.request.contextPath}/Portal/volunteeApply.do?code="+$(this).attr("data-code")+"&rnd="+Math.random();
    			 })
    			 //点击登录,跳转到登陆页
    			 $("#btn-login").on("click",function(){
    				 window.location.href="${pageContext.request.contextPath}/Portal/portalLogin.do"
    			 })
    			 //点击注册,跳转到登陆页
    			 $("#btn-regist").on("click",function(){
    				 window.location.href="${pageContext.request.contextPath}/Portal/portalRegist.do"
    			 })
    			 
    			 //机构动态jgdt
    			 $("#btn-jgdt").on("click",function(){
    				 window.location.href="${pageContext.request.contextPath}/Portal/orgintroduction.do"
    			 }) 
    			 //机构简介jgjj
    			 $("#btn-jgjj").on("click",function(){
    				 window.location.href="${pageContext.request.contextPath}/Portal/instruction.do"
    			 })   
    			 //科室简介ksjj
    			 $("#btn-ksjj").on("click",function(){
    				 window.location.href="${pageContext.request.contextPath}/Portal/depDetail.do"
    			 })       			 
    			 return that;
    		 },
   		 	 dataformat:function(format){    			  
			  try{
    			  var date = new Date(format);
    			  var year = date.getFullYear();
    			  var month = date.getMonth()+1;
    			  var day = date.getDate();
    			  if(month<10){
    				  return year +"-"+"0"+month+"-"+day;  
    			  }else{
    				  return year +"-"+month+"-"+day;
    			  }        			  
			  }   catch(e){
				  return format
			  } 
   		  }
     }
     
     $(function(){    	 
    	 page.init();
    	 
/* 		 $("#right-content-list").animate({ 
			    left: "100px"
		 }, 5000 );    */ 

		 
		 

     })
  </script>
  
  
</body>
</html>